﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ThanhTu.GNC.Media.KQXS.DataAccess.DAL;
using ThanhTu.GNC.Media.KQXS.DataAccess.DO;

namespace ThanhTu.GNC.Media.KQXS.DataAccess.BL
{
    public class StylePredictedBL : IDisposable
    {
        private StylePredictedDAL vStylePredictedDAL = null;
        private bool disposed = false;
        public StylePredictedBL()
        {
            if (vStylePredictedDAL == null)
            {
                vStylePredictedDAL = new StylePredictedDAL();
            }
        }
        ~StylePredictedBL() { Dispose(false); }

        #region IDisposable Members

        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        private void Dispose(bool disposing)
        {
            if (!disposed)
            {
                if (disposing)
                {
                    if (vStylePredictedDAL != null)
                    {
                        vStylePredictedDAL.Dispose();
                        vStylePredictedDAL = null;
                    }
                }

                disposed = true;
            }
        }

        #endregion

        public int Save(string Stylepredicted_name) { return vStylePredictedDAL.Save(Stylepredicted_name); }
        public StylePredictedDO GetByStylePredicted(int STYLEPREDICTED_ID) { return vStylePredictedDAL.GetByStylePredicted(STYLEPREDICTED_ID); }
        public List<StylePredictedDO> SelectAll() { return vStylePredictedDAL.SelectAll(); }
    }
}
